This is a replication file for "Rivals Within: Political Factions, Loyalty, and Elite
Competition under Authoritarianism" by Ting Chen and Ji Yeon Hong.

The do-file was made with STATA version 15. STATA 14 or plus is necessary. Please download all datafiles to run the full analyses.
If not installed already, you need to search and download "reghdfe" and "fsum".

The commands include all tables in the main manuscript and the online appendix.

If you have any question, please email the corresponding author at jeanno1@gmail.com.